package com.hbter630.change.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xbfinal
 * @since 2023-05-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Cart implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 购物车ID（主键）
     */
      @TableId(value = "cart_id", type = IdType.AUTO)
    private Integer cartId;

    /**
     * 订单总金额
     */
    private String totalAmount;

    /**
     * 用户ID（外键，参考用户表）
     */
    private Integer userId;

    /**
     * 创建日期
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime createdDate;


}
